<?php
namespace app\validate;

use app\base\BaseValidate;

/**
 * 验证器-banner
 * Class BannerValidate
 * @package app\validate
 */
class BannerValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require|number',
        'banner_title|标题' => 'require|max:30',
        'banner_src|图片地址' => 'require|max:255',
        'jump_type|跳转类型' => 'require',
        'jump_link|跳转链接' => 'max:255',
        'goods_id|商品id' => 'number',
        'area|显示区域' => 'require',
        'rank|排序' => 'number',
        'status|状态' => 'in:0,1'
    ];
}
